package com.sniper.data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author suzhen
 * @create 2017/10/16
 */
public class BrandType {

    public static final BrandType BRAND_DIRECT = new BrandType(1, "品牌直销");
    public static final BrandType AGENCY_DIRECT = new BrandType(2, "代理分销");

    /**
     * 存放所有实例化的值
     */
    public static Map<Integer, String> values = new HashMap<>();

    private int code;
    private String name;

    private BrandType() {
    }

    private BrandType(int code, String name) {
        this.code = code;
        this.name = name;
        values.put(code, name);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
